package com.young.springdemo.service.singleton;

//单例模式方法 恶汉式单例模式,系统加载的时候进行初始化
public class EagerSingleton {

    private static EagerSingleton singleton = new EagerSingleton();

    private EagerSingleton(){
    }
    public static EagerSingleton getInstance(){
        return singleton;
    }

}
